<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li ><a href="{:U('Order/index')}">订单列表</a></li>
			<li class="active" ><a href="#">查看订单详情</a></li>
		</ul>
	<div class="cf">
	<if condition="$order.status eq 2">
	     <a class="btn" href='javascript:if(confirm("确定发货吗？")){location.href="__URL__/reState?id={$order.id}&status=2"}'>发货</a>
	</if>
	</div>
	<div class="data-table table-striped">
		<table style="height: 320px;">
			<tbody>
				<tr style="background-color:#ffffff;"><td colspan="2"><b>订单信息</b></td></tr>
				<tr style="background:none;">
					<td width="80">订单编号</td>
					<td>{$order.order_num}</td>
				</tr>
				<tr style="background:none;">
					<td width="80">下单时间</td>
					<td>{$order.addtime|date="Y-m-d H:i:s",###}</td>
				</tr>
				<tr style="background:none;">
					<td width="100">订单金额</td>
					<td>{$order.money}</td>
				</tr>

				<tr style="background:none;">
					<td width="80">支付方式</td>
					<td><if condition="$order['paytype'] eq 2">支付宝支付<elseif condition="$order['paytype'] eq 0"/>微信支付</if></td>
				</tr>

				<tr style="background-color:#ffffff;"><td colspan="2"><b>收货人信息</b></td></tr>
				<tr style="background:none;">
					<td width="80">收货人姓名</td>
					<td>{$order.name}</td>
				</tr>
				<tr style="background:none;">
					<td width="80">电话</td>
					<td>{$order.phone}</td>
				</tr>
				<tr style="background:none;">
					<td width="80">区域</td>
					<td>{$order.area}</td>
				</tr>
				<tr style="background:none;">
					<td width="80">配送地址</td>
					<td>{$order.address}</td>
				</tr>

			</tbody>
		</table>
	</div>


	<div class="data-table table-striped" style="margin-top: 20px;">
		<label><b>商品信息</b></label>
		<table style="min-width: 60%">
			<thead>
				<tr>
					<th>商品名称</th>
					<th>品牌</th>
					<th>商品规格</th>
                    <th>商品数量</th>
                    <th>价格</th>
				</tr>
			</thead>
			<tbody style="text-align: center">
				<notempty name="list">
				<volist name="list" id="channel">
					<tr style="height: 40px;">
						<td>{$channel.title}</td>
						<td>{$channel.brand}</td>
						<td>
							{$channel.product_attr}
						</td>
						<td>{$channel.product_num}</td>
                        <td>{$channel.product_price}</td>
					</tr>
				</volist>
				<else/>
				<td colspan="4" class="text-center"> aOh! 暂时还没有内容! </td>
				</notempty>
			</tbody>
		</table>
		<div class="form-item cf">
			<!--<button class="btn submit-btn "  type="submit" >保 存</button>-->
			<a class="btn btn-return" href="__URL__/index">返 回</a>
		</div>
	</div>
</div>
</body>
</html>